#ifndef OPTIONADD_H
#define OPTIONADD_H

#include <QWidget>
#include "food.h"
#include "sql.h"
#include <QMessageBox>
#include "option.h"
#include <QDateTime>
namespace Ui {
class OptionAdd;
}

class OptionAdd : public QWidget
{
    Q_OBJECT

public:
    explicit OptionAdd(QWidget *parent = nullptr);
    void setTime(QDateTime time);
    QDateTime time;
    ~OptionAdd();
    Food selected;
    bool haveSelected = false;
    SQL sql;
signals:
    void completed();

private:
    Ui::OptionAdd *ui;
};

#endif // OPTIONADD_H
